<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* ul {
      list-style: none;
    } */

    /* 
    ul li {
      display: inline-block;
      float: left;
    } */
    .box {
      float: left;
      width: 640px;
      height: 50px;
      background-color: #ffc0cb;
    }

    .box a {
      float: left;
      /* display: inline-block; */
      width: 80px;
      height: 50px;
      color: #ffffff;
      text-align: center;
      line-height: 50px;
      text-decoration: none;
      font-size: 16px;
    }

    a:hover {
      background-color: #008000;
    }
  </style>
</head>

<body>
  <div class="box">
    <a href="#">新闻1</a>
    <a href="#">新闻2</a>
    <a href="#">新闻3</a>
    <a href="#">新闻4</a>
    <a href="#">新闻5</a>
    <a href="#">新闻6</a>
    <a href="#">新闻7</a>
    <a href="#">新闻8</a>
  </div>
</body>

</html>